package com.youlai.boot.auth.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 多租户登录 DTO
 *
 * @author youlaitech
 * @since 2025-11-02
 */
@Data
@Schema(description = "多租户登录对象")
public class TenantLoginDTO {

    @Schema(description = "租户编码", example = "default", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "租户编码不能为空")
    private String tenantCode;

    @Schema(description = "用户名", example = "admin", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码", example = "123456", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "验证码Key")
    private String captchaKey;

    @Schema(description = "验证码值")
    private String captchaCode;
}

